<?php
	class Model_user extends CI_Model{
		protected $_table = "tbl_user";
		public function __construct(){
			parent::__construct();
			$this->load->database();
		}
		public function getdata($userid){
			$this->db->where("user_id",$userid);
			return $this->db->get($this->_table)->row_array();
		}
	}